package com.bw.permission.service;

import com.bw.permission.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhanggm
 * @since 2020-10-28
 */
public interface IMenuService extends IService<Menu> {

    List<Menu> getMenuTreeByUsername(String token);

    PageInfo<Menu> getPageInfo(Menu menu, Integer pageNum, Integer pageSize);

    /**
     * 根据pid查询菜单
     * @param pid
     * @param allMenuList
     * @return
     */
    public List<Menu> getMenuListByPid(Integer pid,List<Menu> allMenuList);
}
